package com.eptok.gw.szcups.monitor;
/**
 * 
 * 监控器
 * 
 *@author:heqishan, Email:heqishan@gmail.com
 *2013-3-4 下午08:03:09
 */
public class Monitor {
	private boolean masterSwitch;		//主开关（是否接受内部请求）
	private boolean isChanLogin;		//渠道是否签到
	private boolean isMerchantHasKey;	//商户是否已经有密钥
	
	private Monitor(){
		masterSwitch = false;
		isChanLogin = false;
		isMerchantHasKey = false;
	};
	
	private static Monitor monitor = new Monitor();
	
	public static Monitor getInstance(){
		return monitor;
	}

	public boolean isMasterSwitch() {
		return masterSwitch;
	}

	public void setMasterSwitch(boolean masterSwitch) {
		this.masterSwitch = masterSwitch;
	}

	public boolean isChanLogin() {
		return isChanLogin;
	}
	public void setChanLogin(boolean isChanLogin) {
		this.isChanLogin = isChanLogin;
	}

	public boolean isMerchantHasKey() {
		return isMerchantHasKey;
	}

	public void setMerchantHasKey(boolean isMerchantHasKey) {
		this.isMerchantHasKey = isMerchantHasKey;
	}

}
